package com.jackson.spring.aopdemo;

public class ArithmeticCalculatorLoggingImpl implements ArithmeticCalculator {

	public int add(int i, int j) {
		System.out.println("the mothod add  with ["+i+","+j+"]");
		int result = i +j;
		System.out.println("the mothod add end  with "+ result);
		return result;
	}

	public int sub(int i, int j) {
		System.out.println("the mothod sub  with ["+i+","+j+"]");
		int result = i - j;
		System.out.println("the mothod sub end with "+ result);
		return result;
	}

	public int mul(int i, int j) {
		System.out.println("the mothod mul  with ["+i+","+j+"]");
		int result = i * j;
		System.out.println("the mothod mul end  with "+ result);
		return result;
	}

	public int div(int i, int j) {
		System.out.println("the mothod div  with ["+i+","+j+"]");
		int result = i / j;
		System.out.println("the mothod div end  with "+ result);
		return result;
	}
}
